

/* ==================
         模态窗口
 ==================== */

.yungui-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1110;
	opacity: 0;
	outline: 0;
	text-align: center;
	-ms-transform: scale(1.185);
	transform: scale(1.185);
	backface-visibility: hidden;
	perspective: 1000px;
	background: rgba(0, 0, 0, 0.6);
	transition: all 0.3s ease-in-out 0s;
	pointer-events: none;
	.yungui-bar .content {
		width: calc(100% - 80rpx);
	}
	.yungui-dialog-content{
		float: none !important;
		text-align: left;
		flex-wrap: wrap;
	}
}

.basic{

	.basis-xs {
		width: 20%;
	}

	.basis-sm {
		width: 40%;
	}

	.basis-df {
		width: 50%;
	}

	.basis-lg {
		width: 85%;
	}

	.basis-xl {
		width: 80%;
	}

}
.yungui-modal::before {
	content: "\200B";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

.yungui-modal.show {
	opacity: 1;
	transition-duration: 0.3s;
	-ms-transform: scale(1);
	transform: scale(1);
	overflow-x: hidden;
	overflow-y: auto;
	pointer-events: auto;
}

.yungui-dialog {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-left: auto;
	margin-right: auto;
	width: 340px;
	max-width: 100%;
	background-color: #f8f8f8;
	border-radius: 10rpx;
	overflow: hidden;

    &.bg-none{
        background-color: rgba(0, 0, 0, 0) !important;
    }

}

.yungui-modal.bottom-modal::before {
	vertical-align: bottom;
}

.yungui-modal.bottom-modal .yungui-dialog {
	width: 100%;
	border-radius: 0;
}

.yungui-modal.bottom-modal {
	margin-bottom: -500px;
}

.yungui-modal.bottom-modal.show {
	margin-bottom: 0;
}


.yungui-modal.drawer-left-modal,.yungui-modal.drawer-right-modal {
	transform: scale(1);
	display: flex;
}

.yungui-modal.drawer-right-modal{
	justify-content: flex-end;
}

.yungui-modal.drawer-left-modal .yungui-dialog,.yungui-modal.drawer-right-modal .yungui-dialog {
	height: 100%;
	min-width: 100px;
	border-radius: 0;
	margin: initial;
	transition-duration: 0.3s;
}

.yungui-modal.drawer-left-modal .yungui-dialog {
	transform: translateX(-100%);
}

.yungui-modal.drawer-right-modal .yungui-dialog {
	transform: translateX(100%);
}

.yungui-modal.drawer-right-modal.show .yungui-dialog,.yungui-modal.drawer-left-modal.show .yungui-dialog {
	transform: translateX(0%);
}

.yungui-modal .yungui-dialog>.yungui-bar:first-child .action{
	min-width: 80rpx;
	margin-right: 0;
	min-height: 50rpx;
}